import request from '~/utils/resquest'

// 字典管理列表
export const tenantDictListGet = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/tenantDict/list',
    method: 'get',
    params
  })

// 字典管理删除
export const tenantDictRemovePost = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/tenantDict/remove',
    method: 'post',
    params
  })

// 字典管理所属租户
export const tenantSelectGet = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/tenant/select',
    method: 'get',
    params
  })

// 字典管理上级字典tree
export const tenantDictTreeGet = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/tenantDict/tree?code=DICT',
    method: 'get',
    params
  })

// 字典管理提交
export const tenantDictSubmitPost = <T>(data: T) =>
  request({
    url: '/api/gxsaas-system/tenantDict/submit',
    method: 'post',
    data
  })
